package soundsystem;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Created by qiangjindong
 * 2018-08-27 16:16
 */
@Configuration
//@ComponentScan(basePackages = "soundsystem")
//@ComponentScan(basePackageClasses = EmptyInterface.class)
public class CDPlayConfig {

//    @Bean n
//    public MediaPlayer mediaPlayer() {
//        return new CDPlayer(compactDisc());
//    }

    @Bean
    public MediaPlayer mediaPlayer(CompactDisc compactDisc) {
        return new CDPlayer(compactDisc);
    }
}
